package com.spatio.serving.basic.service.template.common.domain;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDateTime;

public class MealDo {
    private int record_id;
    @JsonProperty("user_id")
    private int user_id;
    //private String phoneNumber;
    @JsonProperty("datetime")
    private LocalDateTime dateTime;
    private double calories;
    @JsonProperty("protein")
    private double protein;
    private double fat;
    private double carbs;


    public MealDo() {
    }

    public MealDo(int record_id, int user_id, LocalDateTime dateTime, double calories, double protein, double fat, double carbs) {
        this.record_id = record_id;
        this.user_id = user_id;
        this.dateTime = dateTime;
        this.calories = calories;
        this.protein = protein;
        this.fat = fat;
        this.carbs = carbs;
    }

    /**
     * 获取
     * @return record_id
     */
    public int getRecord_id() {
        return record_id;
    }

    /**
     * 设置
     * @param record_id
     */
    public void setRecord_id(int record_id) {
        this.record_id = record_id;
    }

    /**
     * 获取
     * @return user_id
     */
    public int getUser_id() {
        return user_id;
    }

    /**
     * 设置
     * @param user_id
     */
    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    /**
     * 获取
     * @return dateTime
     */
    public LocalDateTime getDateTime() {
        return dateTime;
    }

    /**
     * 设置
     * @param dateTime
     */
    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }

    /**
     * 获取
     * @return calories
     */
    public double getCalories() {
        return calories;
    }

    /**
     * 设置
     * @param calories
     */
    public void setCalories(double calories) {
        this.calories = calories;
    }

    /**
     * 获取
     * @return protein
     */
    public double getProtein() {
        return protein;
    }

    /**
     * 设置
     * @param protein
     */
    public void setProtein(double protein) {
        this.protein = protein;
    }

    /**
     * 获取
     * @return fat
     */
    public double getFat() {
        return fat;
    }

    /**
     * 设置
     * @param fat
     */
    public void setFat(double fat) {
        this.fat = fat;
    }

    /**
     * 获取
     * @return carbs
     */
    public double getCarbs() {
        return carbs;
    }

    /**
     * 设置
     * @param carbs
     */
    public void setCarbs(double carbs) {
        this.carbs = carbs;
    }

    public String toString() {
        return "MealDo{record_id = " + record_id + ", user_id = " + user_id + ", dateTime = " + dateTime + ", calories = " + calories + ", protein = " + protein + ", fat = " + fat + ", carbs = " + carbs + "}";
    }
}
